From: Keir Fraser Date: Fri, 30 May 2008 15:04:20 +0000 (+0100) Subject: Add xen_phys_start value in the crash info note X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14207^2~4 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=96967abdc7dc36c793d136122101cbb73d29c73a;p=xen.git Add xen_phys_start value in the crash info note This patch makes the vmcore utilities (ex. crash, makedumpfile) be able to get the relocation address of the xen hypervisor from a vmcore. It is necessary for the utilities to find the data of the hypervisor structures. Note that this patch does not raise any comptibility issue for the utilities (which I know) nor the other components of xen. Signed-off-by: Itsuro Oda --- diff --git a/xen/arch/x86/crash.c b/xen/arch/x86/crash.c index 831dc7e04d..d38f969d02 100644 --- a/xen/arch/x86/crash.c +++ b/xen/arch/x86/crash.c @@ -102,6 +102,7 @@ void machine_crash_shutdown(void) hvm_cpu_down(); info = kexec_crash_save_info(); + info->xen_phys_start = xen_phys_start; info->dom0_pfn_to_mfn_frame_list_list = arch_get_pfn_to_mfn_frame_list_list(dom0); } diff --git a/xen/include/xen/elfcore.h b/xen/include/xen/elfcore.h index 175ee628fe..d0fd4266e8 100644 --- a/xen/include/xen/elfcore.h +++ b/xen/include/xen/elfcore.h @@ -66,6 +66,7 @@ typedef struct { unsigned long xen_compile_time; unsigned long tainted; #if defined(__i386__) || defined(__x86_64__) + unsigned long xen_phys_start; unsigned long dom0_pfn_to_mfn_frame_list_list; #endif #if defined(__ia64__)